]> dgit.raspbian.org Git - gnome-shell.git/commit
gdm: Limit verification cancellations to be conform to allowed-failures
authorMarco Trevisan (Treviño) <mail@3v1n0.net>
Mon, 1 Feb 2021 12:10:45 +0000 (13:10 +0100)
committerMarge Bot <marge-bot@gnome.org>
Fri, 12 Feb 2021 20:26:00 +0000 (20:26 +0000)
commitc8bb45b41c3a13ef161103f649aa18938e028a70
tree2f7fb4306c05788227d470bd2ccd939f8dda18bb
parent7e77881717579ec2e5f854e262dd2acc423a69bf
gdm: Limit verification cancellations to be conform to allowed-failures

As per previous commit the user can cancel an ongoing authentication via
Escape key and that will always send the user back to the clock view in
lockscreen or user-selection view in login prompt.

However, we can be a little more permissive and don't switch view to be
able to restart the authentication without further action.

To avoid this to be abused though, we consider the user verification
cancellation via escape key to be a "soft-failure", so once the
configured "allowed-failures" gsettings value has been reached, we'd
just act as before, ignoring any further request (until we don't get
back to the user auth view).

In this way we still make brute-force attacks harder to do, while still
giving the well-behaving user some ability to fix mistakes.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1622>
js/gdm/authPrompt.js
js/gdm/loginDialog.js
js/gdm/util.js